package com.sh.caryr.erp.entity.enums;

import com.baomidou.mybatisplus.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

import java.io.Serializable;

public enum ProductTypeEnum implements IEnum{
    NORMAL(0,"普通商品"),
    CONTAINSKU(1,"含SKU套件"),
    NOTCONTAINSKU(2,"不含SKU套件");

    private final int value;
    private final String desc;

    ProductTypeEnum(final int value, final String desc) {
        this.value = value;
        this.desc = desc;

    }

    @JsonValue
    @Override
    public Serializable getValue() {
        return this.value;
    }

    public String getDesc() {
        return this.desc;
    }
}
